"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
const common_assets = require("../../../../../../common/assets.js");
if (!Array) {
  const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
  const _easycom_up_calendar2 = common_vendor.resolveComponent("up-calendar");
  (_easycom_up_text2 + _easycom_up_calendar2)();
}
const _easycom_up_text = () => "../../../../../../node-modules/uview-plus/components/u-text/u-text.js";
const _easycom_up_calendar = () => "../../../../../../node-modules/uview-plus/components/u-calendar/u-calendar.js";
if (!Math) {
  (_easycom_up_text + _easycom_up_calendar + BPMChart + BPMChart2)();
}
const BPMChart = () => "./BPMChart/index.js";
const BPMChart2 = () => "./BPMChart2/index.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const user = common_vendor.ref({
      name: "熊翱"
    });
    const turnLeft = common_vendor.ref("<");
    const activeStatus = common_vendor.ref("week");
    function showStatus(status) {
      activeStatus.value = status;
    }
    const dateShow = common_vendor.ref(false);
    const weekValue = common_vendor.ref("7月15日-7月22日");
    const monthValue = common_vendor.ref("2024年7月");
    const dayValue = common_vendor.ref("7月17日");
    function dateConfirm() {
      dateShow.value = false;
    }
    const bpmRange = common_vendor.ref("44-151");
    const bpmAverage = common_vendor.ref(56);
    const bpmHigh = common_vendor.ref("170-200");
    const bpmLow = common_vendor.ref("--");
    return (_ctx, _cache) => {
      return {
        a: common_assets._imports_0,
        b: common_vendor.p({
          mode: "name",
          text: user.value.name,
          bold: "true",
          format: "encrypt"
        }),
        c: common_vendor.n({
          active: activeStatus.value === "day"
        }),
        d: common_vendor.o(($event) => showStatus("day")),
        e: common_vendor.n({
          active: activeStatus.value === "week"
        }),
        f: common_vendor.o(($event) => showStatus("week")),
        g: common_vendor.n({
          active: activeStatus.value === "month"
        }),
        h: common_vendor.o(($event) => showStatus("month")),
        i: common_vendor.t(turnLeft.value),
        j: common_vendor.t(weekValue.value),
        k: common_vendor.o(($event) => dateShow.value = true),
        l: activeStatus.value === "week",
        m: common_vendor.t(turnLeft.value),
        n: common_vendor.t(monthValue.value),
        o: common_vendor.o(($event) => dateShow.value = true),
        p: activeStatus.value === "month",
        q: common_vendor.t(turnLeft.value),
        r: common_vendor.t(dayValue.value),
        s: common_vendor.o(($event) => dateShow.value = true),
        t: activeStatus.value === "day",
        v: common_vendor.o(($event) => dateShow.value = false),
        w: common_vendor.o(dateConfirm),
        x: common_vendor.p({
          show: dateShow.value,
          ["min-date"]: "2024-01-01",
          ["max-date"]: "2029-12-31",
          ["month-num"]: "120"
        }),
        y: common_vendor.p({
          type: "info",
          text: "心率范围"
        }),
        z: common_vendor.p({
          text: bpmRange.value
        }),
        A: common_vendor.p({
          text: "次/分钟"
        }),
        B: common_vendor.p({
          type: "info",
          text: "平均静息心率"
        }),
        C: common_vendor.p({
          text: bpmAverage.value
        }),
        D: common_vendor.p({
          text: "次/分钟"
        }),
        E: common_vendor.p({
          type: "info",
          text: "心率过高"
        }),
        F: common_vendor.p({
          text: bpmHigh.value
        }),
        G: common_vendor.p({
          text: "次/分钟"
        }),
        H: common_vendor.p({
          type: "info",
          text: "心率过低"
        }),
        I: common_vendor.p({
          text: bpmLow.value
        }),
        J: common_vendor.p({
          text: "次/分钟"
        }),
        K: common_vendor.p({
          type: "info",
          text: "静息心率指在清醒、不活动的安静状态下，每分钟心跳次数，是衡量心脏健康的重要指标之一。可选择在清晨清醒后安静状态下测量，静息心率参考范围是60-100次/分钟(运动员、大活动量等人群的静息心率可能会低于60次/分钟)。静息心率不在参考范围内的人，发生心血管疾病的概率较高。可通过参加各种适宜强度的运动，使静息心率趋于理想。"
        }),
        L: common_vendor.p({
          text: "状态统计"
        })
      };
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-105e497c"]]);
wx.createPage(MiniProgramPage);
